home *** CD-ROM | disk | FTP | other *** search
- -- Forrest Behaviour SCRIPT
- --------------------------
-
- AIBehaviour.SnipeDummy = {
- Name = "SnipeDummy",
- pathname = "",
-
- -- SYSTEM EVENTS -----
- ---------------------------------------------
- OnSelected = function(self,entity )
- end,
- ---------------------------------------------
- OnSpawn = function(self,entity )
- end,
- ---------------------------------------------
- OnActivate = function(self,entity )
- local pos = Game:GetTagPoint(entity.Behaviour.pathname);
- if (pos) then
- entity:SetPos(pos);
- end
- entity:SelectPipe(0,"stand_with_idle_break");
- end,
- ---------------------------------------------
- OnNoTarget = function( self,entity )
- entity:SelectPipe(0,"relax_from_sound");
- end,
- ---------------------------------------------
- OnPlayerSeen = function( self,entity )
- end,
- ---------------------------------------------
- OnPlayerMemory = function(self, entity )
- end,
- ---------------------------------------------
- OnEnemySeen = function(self,entity )
- end,
- ---------------------------------------------
- OnEnemyMemory = function(self,entity )
- end,
- ---------------------------------------------
- OnDeadFriendSeen = function(self,entity )
- end,
- ---------------------------------------------
- OnDeadEnemySeen = function(self,entity )
- end,
- ---------------------------------------------
- OnInterestingSoundHeard = function(self,entity )
- end,
- ---------------------------------------------
- OnThreateningSoundHeard = function(self, entity )
- entity:SelectPipe(0,"scared_of_sound");
- end,
- ---------------------------------------------
- OnGunfireHeard = function(self,entity )
- end,
- ---------------------------------------------
- OnFootstepsHeard = function( self,entity )
- end,
- ---------------------------------------------
- OnGranateSeen = function( self,entity )
- end,
- ---------------------------------------------
- OnLongTimeNoTarget = function(self, entity )
- end,
- ---------------------------------------------
- OnGroupMemberDied = function(self, entity )
- entity:SelectPipe(0,"scared_of_sound");
- end,
- ---------------------------------------------
- OnNoNearerHidingPlace = function(self, entity , sender)
- end,
- ---------------------------------------------
- OnNoHidingPlace = function( self,entity, sender )
- end,
- ---------------------------------------------
- OnReceivingDamage = function (self,entity, sender)
- end,
- ---------------------------------------------
-
-
- PlayRandomIdleAnimation = function (self,entity, sender)
- local rnd = random(1,10);
- if (rnd > 8) then
- entity:StartAnimation(0,"sidlebreak1",0,0.5);
- elseif (rnd > 7) then
- entity:StartAnimation(0,"skickground1",0,0.5);
- elseif (rnd > 6) then
- entity:StartAnimation(0,"skickground1",0,0.5);
- end
- end,
- ---------------------------------------------
- PlayGetDownAnimation = function(self,entity,sender)
- entity:StartAnimation(0,"salertgetdown",0,0.5);
- end,
- ---------------------------------------------
- GoIntoLoop = function(self,entity,sender)
- entity:StartAnimation(0,"salertgetloop",0,0.5);
- entity:SelectPipe(0,"crouchingthere");
- end,
- ---------------------------------------------
- PlayGetUpAnimation = function(self,entity,sender)
- entity:StartAnimation(0,"salertgetup",0,0.5);
- end,
- ---------------------------------------------
- GoIntoIdleLoop = function(self,entity,sender)
- entity:SelectPipe(0,"stand_with_idle_break");
- end,
- }